package com.dick.base.parameter;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class ProjectParameter {

    private Long id;

    /**
     * 工程名，长度限制16
     */
    @NotEmpty(message = "请输入工程名")
    @Size(max = 16, message = "工程名长度不能超过16字符")
    private String name;
    /**
     * 备注，长度限制128
     */
    @Size(max = 128, message = "工程备注长度不能超过128字符")
    private String memo;
    /**
     * 客户id
     */
    @NotNull(message = "请选择客户")
    private Long customerId;
}
